package com.phone.client.poji.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("tb_coupon")
@ApiModel(value="会员优惠券的实体", description="会员优惠券表")
public class TbCoupon {

  @ApiModelProperty(value = "id")
  @TableId(value = "id",type = IdType.AUTO)
  private Integer id;

  @ApiModelProperty(value = "店铺id")
  private Integer shopId;

  @ApiModelProperty(value = "优惠卷类型;0->全场赠券;1->会员赠券;2->消费赠")
  private Integer type;

  @ApiModelProperty(value = "优惠券名称")
  private String couname;

  @ApiModelProperty(value = "使用平台:0->全部;1->移动;2->PC")
  private Integer platform;

  @ApiModelProperty(value = "数量")
  private Integer count;

  @ApiModelProperty(value = "金额")
  private Double amount;

  @ApiModelProperty(value = "每人限领张数")
  private Integer perLimit;

  @ApiModelProperty(value = "使用门槛;0表示无门槛")
  private Double minPoint;

  @ApiModelProperty(value = "获得时间")
  private String startTime;

  @ApiModelProperty(value = "结束时间")
  private String endTime;

  @ApiModelProperty(value = "使用类型:0->全场通用;1->指定分类;2->指定车辆")
  private Integer useType;

  @ApiModelProperty(value = "备注")
  private String note;

  @ApiModelProperty(value = "发行数量")
  private Integer publishCount;

  @ApiModelProperty(value = "已使用数量")
  private Integer useCount;

  @ApiModelProperty(value = "领取数量")
  private Integer receiveCount;

  @ApiModelProperty(value = "可以领取的日期")
  private String enableTime;

  @ApiModelProperty(value = "优惠码")
  private String ycode;

  @ApiModelProperty(value = "可领取的会员类型:0->无限时")
  private Integer memberLevel;

  @TableField(exist = false)  //表示数据库中不存在该字段
  @ApiModelProperty(value = "会员等级信息")
  private TbMemberLevel level;

}
